// export interface IUserInfo {
//   userName: string;
//   userPwd: string;
// }

// interface IDataResponse {
//   msg: string;
//   token: string;
//   age: number;
//   userName: string;
//   avatar: string;
// }

// export interface IUserInfoResponse {
//   code: number;
//   data: IDataResponse;
// }

//用户登录定义的Ts类型
export interface loginFormData {
  username: string;
  password: string;
}

//定义返回类型的通用数据
export interface ResponseData {
  code: number;
  message: string;
  ok: boolean;
}

//登录接口返回数据类型
export interface loginResponseData extends ResponseData {
  data: string;
}

// 定义用户信息接口
export interface userInfoResponseData extends ResponseData {
  data: {
    routes: any[];
    buttons: string[];
    roles: string[];
    name: string;
    avatar: string;
  };
}